import { MessageBoxData } from 'element-plus'

declare module '@vue/runtime-core' {
    interface ComponentCustomProperties {
      $util: {
          confirm: (title: string, desc: string)=>Promise<MessageBoxData>
          prompt: (title: string, desc: string)=>Promise<{action: string, value: string}>
      },
      $message: {
          warning: (title: string)=>void,
          success: (title: string)=>void,
          error: (title: string)=>void,
      }
    }
}
